package com.zdzx.common.result;

public enum ResultCode {
	/* 成功状态码 */
	RESULT_SUCCESS("1000",null),
	RESULT_ERROR("1001",null),
	LIMITER_ERROR("1002","请求次数过多"),
	PARAM_ERROR("1003","请求参数异常"),
	
	MOBILE_CODE_ERROR("1201","验证码错误"),
	USERNAME_ERROR("1202","用户名错误"),
	PASSWORD_ERROR("1203","密码错误"),
	FROM_ERROR("1204","来源错误"),
	PASSWORD_COUNT_ERROR("1205","密码输入次数过多，5分后再重试"),
	NOT_LOGIN("1206","请先登录"),
	MOBILE_EXIT("1207","手机号已存在"),
	SEND_MOBILE("1208","发送失败"),
	AGAIN_PASSWORD("1207","两次密码不正确"),
	
	TOKEN_SIGNATURE("1101","该账号在其他地点登录"), //签名异常
	TOKEN_MALFORMEDJWT("1102","格式错误"),
	TOKEN_EXPIREDJWT("1103","token过期"),
	TOKEN_UNSUPPORTEDJWT("1104","不支持该JWT"),
	TOKEN_ILLEGALARGUMENT("1105","token参数异常"),
	TOKEN_CHECK("1106","签名解析失败"),
	TOKEN_NULL("1107","token不能为空"),
	TOKEN_ALL("1108","未知异常"),
	
	NOT_BUY_COURSE("1300","没有学习课程权限"),
	BUY_COURSE_EXPIRE("1301","购买课程以过期");
	
	private String code;

	private String mes;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMes() {
		return mes;
	}

	public void setMes(String mes) {
		this.mes = mes;
	}

	private ResultCode(String code, String mes) {
		this.code = code;
		this.mes = mes;
	}

	private ResultCode(String code) {
		this.code = code;
	}
	
}
